package com.util.download.util;

import java.io.File;

/**
 * @Classname FileUtil
 * @Description TODO
 * @Date 2023/11/7 20:43
 * @Created by wangxianlin
 */
public class FileUtil {

    /**
     * 获取本地文件大小
     * @param path
     * @return
     */
    public static long getFileContent(String path) {
        File file = new File(path);
        return file.exists() && file.isFile() ? file.length() : 0;

    }

}
